package patterns.builder;

/**
 * Created by lenovo on 2016/11/23 0023.
 * 建造者，用于创建复杂套餐的建造者
 */
public class MealBuilder {
    //创建汉堡、咖啡套餐
    public Meal prepareBC(){
        Meal meal = new Meal();
        meal.addItem(new Burger());
        meal.addItem(new Coffee());
        return meal;
    }
    //创建薯条、绿茶套餐
    public Meal prepareCG(){
        Meal meal = new Meal();
        meal.addItem(new Chips());
        meal.addItem(new GreenTea());
        return meal;
    }
}
